#ifndef MODEL3D_TERRAIN_H
#define MODEL3D_TERRAIN_H

#include "ITerrain.h"
#include "Mesh.h"

namespace steam
{
	namespace moon
	{
		class Model3DTerrain : public ITerrain
		{
		public:

			Model3DTerrain(coal::IMesh* mesh, const base::Scale& scaleFactor);
			
			~Model3DTerrain();

			virtual coal::IMesh* getMesh();

			virtual float getHeightAt( int x, int z ) const;

			virtual float getWidth() const;

			virtual float getLength() const;

			virtual const base::Scale& getScaleFactor() const;

		private:

			coal::Mesh* m_mesh;
			base::Scale m_scale;
			float m_X;
			float m_Z;
		};
	}
}


#endif